package com.tencent.protocol.jspay;

import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

public class JspayRequest {

	private String appId ;
	
	private String timeStamp ;
	
	private String nonceStr ;
	
	private String extPackage ;
	
	private String signType ;
	
	private String paySign ;

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getTimeStamp() {
		return timeStamp;
	}

	public void setTimeStamp(String timeStamp) {
		this.timeStamp = timeStamp;
	}

	public String getNonceStr() {
		return nonceStr;
	}

	public void setNonceStr(String nonceStr) {
		this.nonceStr = nonceStr;
	}

	public String getExtPackage() {
		return extPackage;
	}

	public void setExtPackage(String extPackage) {
		this.extPackage = extPackage;
	}

	public String getSignType() {
		return signType;
	}

	public void setSignType(String signType) {
		this.signType = signType;
	}

	public String getPaySign() {
		return paySign;
	}

	public void setPaySign(String paySign) {
		this.paySign = paySign;
	}
	
	public Map<String, Object> toMap(){
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("appId", appId);
		map.put("timeStamp", timeStamp);
		map.put("nonceStr", nonceStr);
		map.put("package", extPackage);
		map.put("signType", signType);
		map.put("paySign", paySign);
		return map ;
	}
	
	public static void main(String[] args) {
		System.out.println(UUID.randomUUID().toString().replace("-", ""));
	}
	
}
